package com.app.service.impl;

import com.app.dao.DevMapper;
import com.app.entity.DevUser;
import com.app.service.DevService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DevServiceImpl implements DevService {
    @Autowired
    private DevMapper devMapper;
    @Override
    public DevUser devLogin(String devCode, String devPassword) {
        DevUser login= devMapper.devLogin(devCode);
        if(login!=null&&login.getDevPassword().equals(devPassword)){
            return login;
        }
        return null;
    }
}
